package com.fengplus.demo.service.impl;

import com.fengplus.demo.entity.AppProduct;
import com.fengplus.demo.service.ProductService;
import org.apache.dubbo.config.annotation.DubboService;

import java.util.Date;

@DubboService(version = "${demo.service.version}")
public class ProductServiceImpl implements ProductService {

    @Override
    public AppProduct findOne(Long id) {
        AppProduct product = new AppProduct();
        product.setId(id);
        product.setTitle("产品provider");
        product.setCreatedAt(new Date());
        product.setUpdatedAt(new Date());
        return product;
    }

}
